<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/DanhMuc.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/Sanpham.php';
$danhmucOb = new DanhMuc();
$danhmucList = $danhmucOb->layDanhSachDanhMuc(DanhMuc::HIEN);
$sanphamOb = new Sanpham();

$spDacBietList = $sanphamOb->laySanPhamDacBiet();
?>
<ul>
    <?php foreach ($danhmucList as $item): ?>
        <li><a href="/sanphamtheodanhmuc.php?id=<?php echo $item['id'] ?>"><?php echo $item['tieude'] ?></a></li>
    <?php endforeach; ?>
</ul>
<div class="b"><span class="text4"><b>Đặc biệt</b></span>
</div>

<?php while ($sp = mysql_fetch_assoc($spDacBietList)):?>
<div class="pic1">
    <p class="text5"><?php echo $sp['ten'] ?></p>
    <p><img src="<?php echo $sp['hinhanh'] ?>" alt="img" width="178"  class="imgimg" /></p>
    <p class="text5">Giá bán: <?php echo $sp['gia'] ?> VNĐ <del></del></p>
    <p class="imgimg"><a class="det" target="_blank" href=""><img src="imges/btn-chon.gif" alt="img" /></a><a class="add" target="_blank" href=""><img src="imges/btn-chitiet.gif" alt="img" /></a></p>
</div>
<?php endwhile; ?>

</ul>
<div class="b"><span class="text4"><b>Tìm kiếm nâng cao</b></span>
</div>

</br>
<form action="index.php?ava=listnc" method="post">
<select name="gia" style="size:100px">
	<option value="gia">giá</option>
    <option value="gia<10">dưới 10 triệu</option>
    <option value="10<gia<15">từ 10 đến 15 triệu</option>
    <option value="15<gia">trên 15 triệu</option>
</select> , 
<select name="nhanhieu" style="size:100px">
	<option value="nhanhieu">Nhãn hiệu</option>
    <option value="DELL">DELL</option>
    <option value="COMPAQ - HP">COMPAQ - HP</option>
    <option value="sony">SONY VAIO</option>
    <option value="IBM - LENOVO">IBM - LENOVO</option>
    <option value="ASUS">ASUS</option>
    <option value="MAC BOOK">MAC BOOK</option>
    <option value="TOSHIBA">TOSHIBA</option>
    <option value="SAMSUNG">SAMSUNG</option>
    <option value="Máy tính bảng">Máy tính bảng</option>
</select></br></br>
<input type="submit" name="timnangcao" value="Tìm nâng cao">
</form>